﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations.Schema;

namespace S4Store.Domain
{
    public class DataConfirm
    {
        public int Id { get; set; }
        public int Status { get; set; }

        public DataConfirmStatus ConfirmStatus
        {
            get { return Status.ToEnum<DataConfirmStatus>(); }
            set { Status = value.ToInt(); }
        }
        [NotMapped]
        public bool IsConfirmed
        {
            get { return ConfirmStatus == DataConfirmStatus.Confirmed; }
        }
    }

    public enum DataConfirmStatus
    {
        None=0,
        Confirmed=1
    }
}
